Auto merge of #2696 - sbeckeriv:an-author-by-another-name-1213, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 17 May 2016 00:11:58 +0000 (17:11 -0700)
committerbors <bors@rust-lang.org>
Tue, 17 May 2016 00:11:58 +0000 (17:11 -0700)
commit4e009a6c812eecb0333bacf9e80e7cfa0948646b
tree7ad83dbafb64f9ed091cedaf950f02d7b9efbea4
parentba840ca0c4586464e43ab763b02c42e81d3e7fa1
parent91e40657ae822a14adad6fdc5d4fc4b6061f3b1c
Auto merge of #2696 - sbeckeriv:an-author-by-another-name-1213, r=alexcrichton

An author by another name

Dearest Reviewer

This is to support environment variables for name and email more like
git. This closes #1213 . I did look in to using libgit2 but I did not
see a clear way to get the author ident. This just moves from or_else
chaining to map_filter with env checks and getting the nth(0) result.

The docs I found
https://git-scm.com/book/en/v2/Git-Internals-Environment-Variables#Committing
do not really indicate an order of preference to the variables. I am
more then happy to rearrange the arrays in anyway.

I also did not add in a new test for the positive case because the
test for the current variables cover that path.

Thanks for reviewing,
Becker